logical diagram